package HP.p0828;

import java.sql.Connection;
import java.sql.DriverManager;

public class BaseDAO {
    private final String DRIVER_CLASS = "oracle.jdbc.driver.OracleDriver";
    private final String URL = "jdbc:oracle:thin:localhost:1521:orcl";
    private final String UNAME = "system";
    private final String UPWD = "123456";

    public Connection getConn() throws Exception {
        Class.forName(DRIVER_CLASS);
        Connection conn = DriverManager.getConnection(URL, UNAME, UPWD);
        return conn;
    }

}
